import { useNavigate } from "react-router-dom";
let useNavigate = useNavigate();

function App() {   
  function goHome(){
    useNavigate('/category');
  }
  return (
      <div>
          <button onClick={goHome}>go cate</button>
      </div>
  );
}

export default App;
